package org.spring.dao.Impl;

import org.spring.dao.TeacherDao;
import org.spring.domain.Teacher;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository("teacherDao")
public class TeacherDaoImpl implements TeacherDao {
    @Override
    public void insert(Teacher teacher) {
        System.out.println("===>增");
    }

    @Override
    public void delete(Integer id) {
        System.out.println("===>删");
    }

    @Override
    public void update(Teacher teacher) {
        System.out.println("===>改");
    }

    @Override
    public List<Teacher> findAll() {
        System.out.println("===>查全部");
        return null;
    }

    @Override
    public Teacher findOne(Integer id) {
        System.out.println("===>查id");
        return null;
    }
}
